package business.report.impl;

import business.report.JudicialExpertiseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import report.domain.JudicialExpertise;
import report.domain.JudicialExpertiseCriteria;
import report.mapper.JudicialExpertiseMapper;

import java.util.List;

/**
 * Created by SunZZ on 2016/6/19.
 */
@Service(value = "judicialExpertiseService")
public class JudicialExpertiseServiceImpl implements JudicialExpertiseService{
    @Autowired
    JudicialExpertiseMapper judicialExpertiseMapper;

    @Override
    public List<JudicialExpertise> getJudicialExpertise() {
        JudicialExpertiseCriteria criteria = new JudicialExpertiseCriteria();
        criteria.createCriteria().getAllCriteria();
        return judicialExpertiseMapper.selectByExample(criteria);
    }
}
